{extend name="layout/index" /}
{block name="title"}
<title>修改分类</title>
{/block}
{block name="adminUser"}
<a href="#" data-toggle="dropdown">
	<img src="/admin/images/user-4.png" alt="user-image" class="img-circle img-inline userpic-32" width="28" />
	<span>
		{$adminUser}
		<i class="fa-angle-down"></i>
	</span>
</a>
{/block}
{block name="content"}
		<div class="panel panel-default">
						<div class="panel-heading">
							<h3 class="panel-title">修改分类</h3>
							<div class="panel-options">
								<a href="#" data-toggle="panel">
									<span class="collapse-icon">&ndash;</span>
									<span class="expand-icon">+</span>
								</a>
								<a href="#" data-toggle="remove">
									×
								</a>
							</div>
						</div>
						<div class="panel-body">
							
							<form action="{:url('admin/doCateEdit')}" method="post" enctype="multipart/form-data" role="form" class="form-horizontal">

								<div class="form-group">
									<label class="col-sm-2 control-label" for="field-4">分类名称:</label>
									
									<div class="col-sm-10">
										<input class="form-control" id="field-4" type="text" name="name" value="{$info.name}">
									</div>
								</div>								

								<div class="form-group-separator"></div>

								<div class="form-group">
									<label class="col-sm-2 control-label">父级分类</label>
									
									<div class="col-sm-10">
										<select name="pid" class="form-control">
											<option selected value="0">--请选择--</option>
											{foreach name="cates" id="vo"}
											<option value="{$vo.id}" {if condition="$info.pid == $vo.id"} selected {/if}>{$vo.name}</option>
											{/foreach}

										</select>
									</div>
									
								</div>	

								<div class="form-group-separator"></div>
								 <input type="hidden" name="id" value="{$info.id}">
								<input type="submit" value="点击修改" class="btn btn-info btn-single pull-right"/>
							</form>
							
						</div>
					</div>
{/block}

